const { override, fixBabelImports, addDecoratorsLegacy, addWebpackPlugin } = require('customize-cra')
const CompressionPlugin = require("compression-webpack-plugin")
module.exports = override(
    fixBabelImports('import', {
        libraryName: 'antd',
        libraryDirectory: 'es',
        style: 'css',
    }),
    addDecoratorsLegacy(),
    addWebpackPlugin(new CompressionPlugin()),
    (config, env) => {
        config.devtool = 'none';
        return config;
    }
);